<template>
  <div id="mainCenter">
    <div class="bg-color-black">
      <div class="d-flex pt-2 pl-2">
        <dv-decoration-8 style="width:25%;height:40px;" />
        <span ref="opTitle" class="fs-xl text mx-2" style="width:50%;height:40px;font-size:30px;display: inline-block;line-height: 40px;text-align: center">{{title}}</span>
        <dv-decoration-8 :reverse="true" style="width:25%;height:40px;" />
      </div>
      <div>
        <BottomLeftChartSec @updateTitle="updateTitle" />
      </div>
    </div>
  </div>
</template>

<script>
import BottomLeftChartSec from '@/components/echart/bottom/bottomLeftChart2'
export default {
  components: {
    BottomLeftChartSec
  },
  data() {
    return {
      title: '当班缺陷分布 一线'
    }
  },
  methods: {
    updateTitle(num) {
      console.log('updateTitle', num)
      const numCh = ['', '一', '二', '三', '四', '五']
      this.title = '当班缺陷分布 ' + numCh[num] + '线'
    }
  }
}
</script>

<style lang="scss" class>
$box-height: 485px;
$box-width: 100%;
#mainCenter {
  padding: 20px 5px;
  height: $box-height;
  width: $box-width;
  border-radius: 5px;
  .bg-color-black {
    height: $box-height - 35px;
    border-radius: 10px;
  }
  .text {
    color: #c3cbde;
  }
  .chart-box {
    margin-top: 16px;
    width: 170px;
    height: 170px;
    .active-ring-name {
      padding-top: 10px;
    }
  }
}
</style>
